<?php
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?><!DOCTYPE html>

<html <?php language_attributes(); ?> xmlns="http://www.w3.org/1999/xhtml"
      xmlns:og="http://ogp.me/ns#"
      xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' );

	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );

	?></title>

<?php
    if(is_single() || is_page())
        {
        echo '<meta property="og:title" content="'.get_bloginfo('name').'" />'; // : '.single_post_title('', false).'
        while(have_posts()):the_post();
              $og_thumb_meta = get_post_meta($post->ID,'_thumbnail_id',false);
              $og_img = wp_get_attachment_image_src($og_thumb_meta[0], false);
              $og_thumb = $og_img[0];
            $og_excerpt = str_replace(array("\r\n", "\r", "\n"), "", get_the_excerpt());
            $og_excerpt_clean = apply_filters('the_excerpt_rss', $og_excerpt);
        endwhile;      
			if(!empty($og_excerpt_clean)){
				echo '<meta property="og:description" content="'.strip_tags($og_excerpt_clean).'" />';
			}
			else{
				  echo '<meta property="og:description" content="Tiana Von Johnson, a True Powerhouse in Every Sense of the Word." />';
			}
        }
        else{
        echo '
            <meta property="og:title" content="'.get_bloginfo('name').'" />
              <meta property="og:description" content="Tiana Von Johnson, a True Powerhouse in Every Sense of the Word." />
            ';
        }
    if(is_home() || is_front_page())
        {
         echo '
             <meta property="og:type" content="website" />
             <meta property="og:url" content="'.get_bloginfo('url').'"/>
            ';
        }
        else{
         echo '
             <meta property="og:type" content="article" />
             <meta property="og:url" content="'.get_permalink().'"/>
             ';
        }
      if(!isset($og_thumb) || $og_thumb == null)
         {
        $og_thumb = 'http://tianavonjohnson.com/wp-content/uploads/2012/08/about.jpg';
        }
    echo '
        <meta property="og:image" content="'.$og_thumb.'" />
        <meta property="fb:admins" content="1132958266"/>
        ';
?>
	
<meta name="description" content="Tiana Von Johnson, a True Powerhouse in Every Sense of the Word.">
<meta name="keywords" content="Power, Power House, Business, World, Boss, Entrepreneur, Women in Business, Women, Strong Women, Classy, Sophisticated, Individual, Ambition, Perseverance, Influential, Diverse, Diversified, Blog, Blogs, Fashion, Health, T-shirts, YouTube  Fitness, Lose Weight, Shape, Revive, Reshape, Garments, Bras, Body Shapers, Body Garments, Corsets, Girdles, Tummy Tuck, Butt Lift, Cancer, Ardyss, GoldStar Properties, Madison Layne, New York Real Estate, Africa Americans in Real Estate, Black Broker, Female Broker, Style, Style Network, Power Book Club, Magilla Entertainment, Vons World Entertainment">

<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php
	/* We add some JavaScript to pages with the comment form
	 * to support sites with threaded comments (when in use).
	 */
	if ( is_singular() && get_option( 'thread_comments' ) )
		wp_enqueue_script( 'comment-reply' );

	/* Always have wp_head() just before the closing </head>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to add elements to <head> such
	 * as styles, scripts, and meta tags.
	 */
	wp_enqueue_script("jquery");
	wp_register_script( 'jquery-cycle', get_template_directory_uri().'/js/jquery.cycle.all.js');
	wp_enqueue_script( 'jquery-cycle' );
	wp_enqueue_script('thickbox');
    wp_enqueue_style('thickbox');wp_enqueue_script('thickbox');
    wp_enqueue_style('thickbox');
	wp_head();
?>
<script type="text/javascript" src="<?php bloginfo( 'template_url' ); ?>/js/colorbox/jquery.colorbox-min.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/js/colorbox/colorbox.css" />
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "8a4c070b-91e7-4dbf-a0f7-e180935a891d"}); </script>
</head>


<body>
<div class="template_holder"><!-- template holder -->
	<div class="content_holder"> <!-- content holder -->
	
		<div class="header">
			<div class="top_logo">
				<a href="<?php bloginfo('url');?>"><img src="<?php bloginfo('template_url');?>/images/logo2.png" alt="logo"/></a>
			</div>
			<div class="top_menu_holder">
				<?php wp_nav_menu( array('menu' => 'TopMenu','menu_class'=>'top_menu','container'=>false )); ?>                          
			</div>
		</div>
		<?php if( is_front_page() ){ ?>
				<?php include_once('includes/header-banner.php'); ?>
		<?php }else{ ?>

		<?php } ?>